package com.axsun.service_comments.controller;


import com.axsun.service_comments.service.UService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UController {

    private UService userService;

    @Autowired
    public void setUserService(UService userService) {
        this.userService = userService;
    }

    @RequestMapping(value = "/showAllComments")
    public Object showAllComments() {
        return userService.showAllComments();
    }

    @RequestMapping(value = "/showSpecInfos")
    public Object showSpecInfos(int key) {
        return userService.ShowSpecInfos(key);
    }
}
